package com.hxx;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.core.env.ConfigurableEnvironment;

@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.hxx.mapper")
public class BaseApplication {
    private static final Logger log = org.slf4j.LoggerFactory.getLogger(BaseApplication.class);
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(BaseApplication.class);
        ConfigurableEnvironment environment = application.run(args).getEnvironment();
        log.info("启动成功！！");
        log.info("MemberApplication: \t" + environment.getProperty("server.port"));

    }
}
